from PyQt5.QtWidgets import QWidget, QApplication


class Screenutil(QWidget):
    def __init__(self):
        super().__init__()
        self.initUI()

    def initUI(self):
        self.desktop = QApplication.desktop()
        self.screenRect = self.desktop.screenGeometry()

    def get_width(self, ratio):
        return int(self.screenRect.width() / ratio)

    def get_high(self, ratio):
        return int(self.screenRect.height() / ratio)
